using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Michsky.UI.Shift;
using UnityEngine;
using UnityEngine.UI;


namespace Galplay {
  public class ChapterButton : MonoBehaviour {
    public Image icon;
    public Text title;
    public UIElementSound sound;
    public GameScene scene { get; set; }
    public GameProject game { get; set; }

    void Start() { }
    void Update() { }

    public void OnClick() {
      if (scene != null) {
        GameManager.Instance.PlayScene(scene);
      }else if (game != null){
        GameManager.Instance.SetGame(game);
      }

    }
  }
}